package org.example.helloworld.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 * 电费价格
 * </p>
 *
 * @author cwf
 * @since 2024-07-10
 */
@TableName("elc_pri")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class ElcPri implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "elc_id", type = IdType.AUTO)
    private Integer elcId;

    @TableField("stemp")
    private String step;

    private BigDecimal down;

    private BigDecimal up;

    private BigDecimal pri;

    private LocalDateTime creDate;


    @Override
    public String toString() {
        return "ElcPri{" +
            "elcId = " + elcId +
            ", step = " + step +
            ", down = " + down +
            ", up = " + up +
            ", pri = " + pri +
            ", creDate = " + creDate +
        "}";
    }
}
